<?php
    $coopClass=new coop();
    $coopName=$coopClass->getCoopArr();
    
    if(ofAuthenticated()){
        $memID=$_GET["memID"];
    }
    
    $memberClass=new member($memID);
    $member=  $memberClass->getMember();
?>
<style type="text/css">
    #structureContent{
        vertical-align: top;
    }
</style>
<div class="col-md-12" style="margin-top: 10px;">
    <div class="panel panel-default">
        <div class="panel-body">
            <?=$member["title"]." ".$member["firstName"]." ".$member["lastName"]?>
            <button class="btn btn-default" style="float: right;"
                <?php
                    if(ofAuthenticated()){
                        ?>
                    onclick="window.open('?page=member/memberDetail&memID=<?=$_GET["memID"]?>','_self')"
                            <?php
                    }else{
                        ?>
                    onclick="window.open('?page=member/memberDetail','_self')"
                            <?php
                    }
                ?>
                >
                <span class="glyphicon glyphicon-chevron-left"></span> ข้อมูลเกษตรกร
            </button>
        </div>
    </div>
</div>
<?php include "member/farm/farmList.php"?>